<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册页面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
        }
        .container {
            width: 100%;
            max-width: 400px;
            margin: 50px auto;
            padding: 20px;
            background-color: #fff;
            border: 1px solid #ddd;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        h2 {
            text-align: center;
        }
        form {
            display: flex;
            flex-direction: column;
        }
        label {
            margin-bottom: 5px;
        }
        input[type="text"],
        input[type="password"],
        input[type="email"] {
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
        button {
            padding: 10px;
            background-color: #333;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        button:hover {
            background-color: #555;
        }
        .footer {
            text-align: center;
            margin-top: 20px;
        }
        .footer a {
            color: #333;
            text-decoration: none;
        }
    </style>
</head>
<body>
    <div class="container">
        <h2>用户注册</h2>
        <form action="/register" method="post">
            <label for="username">用户名：</label>
            <input type="text" id="username" name="username" required>
            
            <label for="email">邮箱：</label>
            <input type="email" id="email" name="email" required>
            
            <label for="password">密码：</label>
            <input type="password" id="password" name="password" required>
            
            <label for="confirm-password">确认密码：</label>
            <input type="password" id="confirm-password" name="confirm-password" required>
            
            <button type="submit">注册</button>
        </form>
        <div class="footer">
            <p>已有账号？<a href="login.html">立即登录</a></p>
        </div>
    </div>
</body>
</html>